﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QLPKWeb.BussinessDelegate.CommonDelegate;
using QLPKWeb.Controllers.Base;
namespace QLPKWeb.Controllers
{
    public class DownloadController : Controller
    {
        //public DownloadDelegate DownloadFile(string fileName, string path)
        public DownloadDelegate DownloadFile(string fileName, string path)
        {
            return new DownloadDelegate
            {
                FileName = fileName,
                Path = ConfigurationManager.AppSettings["CommonPathSegment"]  + path //Phần đường dẫn chung + phần đường dẫn riêng
            };
        }
    }
}
